import {
  get,
  post,
  //postForm,
  del,
} from "@/utils/http";
const packageName = `/admin`;
import { toQuery } from "@/utils/util";

/**
 * 库存管理
 */
/* 工服科室库存 */
// 工服科室库存表头
export function getDoctorField(params) {
  return post(`${packageName}/getDoctorField`, params);
}
// 获取工服科室库存列表
export function doctorClothAreaInventoryList(pages, params) {
  return post(`${packageName}/doctorClothAreaInventoryList` + toQuery(pages), params);
}
// 工服科室库存操作明细
export function doctorClothAreaInventoryLogInfo(params) {
  return post(`${packageName}/doctorClothAreaInventoryLogInfo`, params);
}
// 工服科室库存详情
export function doctorClothAreaInventoryInfo(params) {
  return post(`${packageName}/doctorClothAreaInventoryInfo`, params);
}
/* 被服科室库存 */
// 被服科室库存表头
export function getPatientField(params) {
  return post(`${packageName}/getPatientField`, params);
}
// 获取被服科室库存列表
export function patientClothAreaInventoryList(pages, params) {
  return post(`${packageName}/patientClothAreaInventoryList` + toQuery(pages), params);
}
// 被服科室库存操作明细
export function patientClothAreaInventoryLogInfo(params) {
  return post(`${packageName}/patientClothAreaInventoryLogInfo`, params);
}
// 被服科室库存详情
export function patientClothAreaInventoryInfo(params) {
  return post(`${packageName}/patientClothAreaInventoryInfo`, params);
}
// 调整库存
export function adjustInventory(params) {
  return post(`${packageName}/adjustInventory`, params);
}
// 报修库存
export function repairClothInventoryList(pages, params) {
  return post(`${packageName}/repairClothInventoryList` + toQuery(pages), params);
}
// 获取库存表头列表
export function getInventoryField(params) {
  return get(`${packageName}/getInventoryField`, params);
}
// 报修库存明细
export function repairClothInventoryInfo(params) {
  return post(`${packageName}/repairClothInventoryInfo`, params);
}
// 报修入库
export function repairInboundCloth(params) {
  return post(`${packageName}/repairInboundCloth`, params);
}
// 报修出库
export function repairOutboundCloth(params) {
  return post(`${packageName}/repairOutboundCloth`, params);
}
// 报损库存
export function damageClothInventoryList(pages, params) {
  return post(`${packageName}/damageClothInventoryList` + toQuery(pages), params);
}
// 报损库存明细
export function damageClothInventoryInfo(params) {
  return post(`${packageName}/damageClothInventoryInfo`, params);
}
// 报损入库
export function damageInboundCloth(params) {
  return post(`${packageName}/damageInboundCloth`, params);
}
// 删除报损
export function cancelDamage(params) {
  return post(`${packageName}/cancelDamage`, params);
}
